package com.cd468.share;


import android.app.Activity;
import android.content.SharedPreferences;

public class CfgHelper {

	public static int ReadSocre(Activity actShow) {
		SharedPreferences settings = actShow.getSharedPreferences("INFO", 0);
		String OkLevel = settings.getString("Socre", "500");
		return Integer.parseInt(OkLevel);
	}
	public static void WriteSocre(Activity actShow, int Socre) {
		SharedPreferences settings = actShow.getSharedPreferences("INFO", 0);
		settings.edit().putString("Socre", ""+Socre).commit();
	}
}
